package mark.tom.gear.base.provider

import android.content.Context
import com.alibaba.android.arouter.facade.Postcard
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.facade.service.DegradeService
import mark.tom.gear.base.constants.C
import mark.tom.gear.base.utils.LogUtil

/**
 * @Description: ARouter系统降级服务实现类
 * @Author: ttmk110@163.com
 * @Package: mark.tom.gear.base.provider
 * @Date: 2021/1/14
 * @Copyright: 版权归 Mark 所有
 * <ModifyLog>
 * @ModifyContent:
 * @Author:
 * @Date:
 * </ModifyLog>
 */
@Route(path = C.AROUTER_DEGRADE_SERVICE_PATH)
class DegradeServiceImpl : DegradeService {

    override fun onLost(context: Context?, postcard: Postcard?) {
        LogUtil.d("Postcard Uri -> %s onLost", postcard?.uri.toString())
    }

    override fun init(context: Context?) {
        // Do Nothing
    }
}